package org.learn.test;

import java.util.Scanner;

public class SwitchExercise02 {
    public static void main(String[] args) {
        System.out.println("请输入成绩");
        Scanner myScanner = new Scanner(System.in);
        int result = myScanner.nextInt();
        int result1 = (result/60);
        if (result >= 0 & result <=100) {
            switch (result1) {
                case 1:
                    System.out.println("成绩合格");
                    break;
                case 0:
                    System.out.println("成绩不合格");
                    break;
                default:
                    System.out.println("输入有误");
            }
        } else{
            System.out.println("请正确输入成绩");
        }
    }
}
